package com.walle.ak47.commons.jaxrs.cxf.header;


public class SecureHeaderHolder {
	
	/** 如后续ThreadLocal中保存常驻内存数据且不断递增时，需要调用remove方法避免内存溢出 */
	private static ThreadLocal<SecureHander> header = new ThreadLocal<SecureHander>() {
		@Override
		protected SecureHander initialValue() {
			return new SecureHander();
		}
	};

	public static SecureHander getHeader() {
        return header.get();
    }

    public static void removeHeader() {
        header.remove();
    }
    
    public static void setHeader(SecureHander env) {
    	header.set(env);
    }

}
